package com.erps.CommonUtils;


public class JActiveField {
	private int FieldIndex;
	private String FieldName;
	private String DBFDisplay;
	private String FieldValue;
	private int DBLength = 0;
	private Boolean isChange = false;
	private String FKWHERE;
	private String FKTABLE;
	private String FKTEXT;
	private String FKKEY;
	private Boolean isKey;
	private String NullAsValue;
	private Boolean isRequire;
	private int FieldType = ActiveField.ftString;

	public Boolean getIsRequire() {
		return isRequire;
	}

	public void setIsRequire(Boolean pRequire) {
		isRequire = pRequire;
	}

	public String getDBFDisplay() {
		return DBFDisplay;
	}

	public void setDBFDisplay(String display) {
		DBFDisplay = display;
	}

	public String getNullAsValue() {
		return NullAsValue;
	}

	public void setNullAsValue(String nullAsValue) {
		NullAsValue = nullAsValue;
	}

	public String getFieldValue() {
		return FieldValue;
	}

	public void setFieldValue(String fieldValue) {
		isChange = true;
		FieldValue = fieldValue;
	}

	public JActiveField() {
		Clear();
	}

	public Boolean getIsChange() {
		return isChange;
	}

	public int getDBLength() {
		return DBLength;
	}

	public void setDBLength(int dBLength) {
		DBLength = dBLength;
	}

	// /�������Ϊ���Σ���ֱ��
	public JActiveField(String cFieldName, int iFieldType, String cFieldValue) {
		Clear();
		this.setFieldName(cFieldName);
		this.setDBFDisplay(cFieldName);
		this.setFieldValue(cFieldValue);
		this.setFieldType(iFieldType);
	}

	// /�������Ϊ���Σ���ֱ��
	public JActiveField(String cFieldName, String cDBFDisplay) {
		Clear();
		this.setFieldName(cFieldName);
		this.setDBFDisplay(cDBFDisplay);
	}

	// �ַ����ֶΣ����������Ϊ����
	public JActiveField(String cFieldName, String cDBFDisplay, String objFieldValue) {
		Clear();
		this.setFieldName(cFieldName);
		this.setDBFDisplay(cDBFDisplay);
		this.setFieldType(ActiveField.ftString);
		this.setFieldValue(objFieldValue);
	}

	// �ַ����ֶΣ��������ͣ����Σ�������
	public JActiveField(String cFieldName, String cDBFDisplay, int iFieldType) {
		Clear();
		this.setFieldName(cFieldName);
		this.setDBFDisplay(cDBFDisplay);
		this.setFieldType(iFieldType);
	}

	// �ַ����ֶΣ����ȴ���
	public JActiveField(String cFieldName, String cDBFDisplay, int iFieldType, int iDBLength) {
		Clear();
		this.setFieldName(cFieldName);
		this.setDBFDisplay(cDBFDisplay);
		this.setFieldType(iFieldType);
		this.setDBLength(iDBLength);
	}

	public void Clear() {
		FieldIndex = 0;
		FieldName = "";
		NullAsValue = "";
		DBLength = 0;
		isKey = false;
		isRequire = false;
		DBFDisplay = "";
		FieldValue = "";
		FKWHERE = "";
		FKTABLE = "";
		FKTEXT = "";
		FKKEY = "";
		FieldType = ActiveField.ftString;
	}

	public String getFieldName() {
		return FieldName;
	}

	public void setFieldName(String fieldName) {
		FieldName = fieldName;
	}

	public int getFieldType() {
		return FieldType;
	}

	public void setFieldType(int fieldType) {
		FieldType = fieldType;
	}

	public String getFKWHERE() {
		return FKWHERE;
	}

	public void setFKWHERE(String fkwhere) {
		FKWHERE = fkwhere;
	}

	public String getFKTABLE() {
		return FKTABLE;
	}

	public void setFKTABLE(String fktable) {
		FKTABLE = fktable;
	}

	public String getFKTEXT() {
		return FKTEXT;
	}

	public void setFKTEXT(String fktext) {
		FKTEXT = fktext;
	}

	public String getFKKEY() {
		return FKKEY;
	}

	public void setFKKEY(String fkkey) {
		FKKEY = fkkey;
	}

	public int getFieldIndex() {
		return FieldIndex;
	}

	public void setFieldIndex(int fieldIndex) {
		FieldIndex = fieldIndex;
	}

	public Boolean getIsKey() {
		return isKey;
	}

	public void setIsKey(Boolean isKey) {
		this.isKey = isKey;
	}
}
